package org.imyy.struts.login;

import com.opensymphony.xwork2.ActionSupport;

public class LoginAction extends ActionSupport {
	/**
	 * 
	 */
	private static final long serialVersionUID = 5892647819864338714L;
	private String account;
	private String password;
	public String getAccount() {
		return account;
	}
	public void setAccount(String account) {
		this.account = account;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		if("hello".equalsIgnoreCase(account) && "123".equals(password)){
			return SUCCESS;
		}
		return LOGIN;
	}
	public void listPerson()throws Exception{
		System.out.println("列出人员信息");
	}
}
